package com.hanlin.backend.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * @author:hl.yuan
 * @date:2021-02-01
 */
@Data
@ToString
@ApiModel("权限dto")
public class AuthorityDto {

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "父级ID")
    private Integer parentId;

    @ApiModelProperty(value = "菜单url地址")
    private String path;

    @ApiModelProperty(value = "菜单name")
    private String name;

    @ApiModelProperty(value = "菜单名称")
    private String title;

    @ApiModelProperty(value = "文件资源位置")
    private String resource;

    @ApiModelProperty(value = "是否隐藏：0 false；1 true")
    private int hiddenInt;

    @ApiModelProperty(value = "是否隐藏")
    private boolean hidden;

    @ApiModelProperty(value = "element ui图标")
    private String icon;

    @ApiModelProperty(value = "顺序")
    private Integer ord;

    @ApiModelProperty(value = "是否可用：0可用，1不可用")
    private String struts;

    @ApiModelProperty("菜单title和icon集合")
    private MetaDto meta;

    @ApiModelProperty(value = "子集菜单")
    private List<AuthorityDto> children;

    @ApiModelProperty(value = "是否有权限")
    private boolean checked;

    @ApiModelProperty(value = "是否拒绝")
    private boolean isIndeterminate;
}
